package com.wwewew;

import java.util.ArrayList;

public class ClassManager {
    private ArrayList<Student>student=new ArrayList<>();
    private StudentOperator studentOperator=new StudentOperatorlmpl2();

    public ClassManager(){
        student.add(new Student("吴智海",'男',100));
        student.add(new Student("吴雨欣",'女',50));
        student.add(new Student("吴智鑫",'男',60));
    }
    //打印全部学生信息
    public void printInfo(){
        studentOperator.printAllInfo(student);
    }

    //打印学生的平均分
    public void printScore(){
        studentOperator.printAverageScore(student);
    }
}
